package jp.co.sn.mml.pojo.tssksbkr;


public class TssksbkrId implements java.io.Serializable { 

	//採番区分
	private String sbKbn;
	//請求年月
	private Long skYm;

	/** default constructor */
	public TssksbkrId(){

	}

	/** full constructor */
	public TssksbkrId(String sbKbn,Long skYm){
		this.sbKbn = sbKbn;
		this.skYm = skYm;
	}

	//Property accessors
	public String getSbKbn(){
		return this.sbKbn;
	}

	public void setSbKbn(String sbKbn){
		this.sbKbn=sbKbn;
	}

	public Long getSkYm(){
		return this.skYm;
	}

	public void setSkYm(Long skYm){
		this.skYm=skYm;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TssksbkrId))
			return false;

		TssksbkrId castOther = (TssksbkrId) other;

		return ((this.getSbKbn() ==  castOther.getSbKbn())
				||(this.getSbKbn()!=null && castOther.getSbKbn() !=null 
					&& castOther.getSbKbn() !=null 
					&& this.getSbKbn().equals(castOther.getSbKbn())))
			&& ((this.getSkYm() ==  castOther.getSkYm())
				||(this.getSkYm()!=null && castOther.getSkYm() !=null 
					&& castOther.getSkYm() !=null 
					&& this.getSkYm().equals(castOther.getSkYm())))
;	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getSbKbn() == null ? 0 : this.getSbKbn().hashCode());
		result = 37 * result
				+ (getSkYm() == null ? 0 : this.getSkYm().hashCode());
		return result;
	}

}